<template>
  <router-view />
</template>

<script lang="ts">
import { Vue } from "vue-class-component";
import { useStore } from "vuex";
export default class App extends Vue {
  store = useStore();
  mounted() {
    // 初始化用户信息
    this.store.dispatch("userModule/initUser");
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  height: 100%;
}
</style>
